package cmm;

import java.util.LinkedList;

import clusterMessages.ClusterMessage;

public class MessageQueue implements IMessageQueue {

	private LinkedList<ClusterMessage> Queue;
	
//  ----------------------------------------------------------------------	
	
	public MessageQueue() {
		Queue = new LinkedList<ClusterMessage>();
	}
	
	public ClusterMessage Pop() {
		return Queue.removeFirst();
	}

	public void Push(ClusterMessage message) {
		Queue.addLast(message);
	}

	public boolean isEmpty() {
		return Queue.isEmpty();
	}

}
